#include <iostream>
#include "vectorfunctions.h"

int issequence(float x[],int  l)
{
	int i, diff;
	diff=x[1]-x[0];
	for (i=2; i<l; i++)
		if ((x[i]-x[i-1])!=diff)
			return 0;
return 1;
}

int main()
{
	int l;
	float x[100];
	cout<<"Length of array : ";
	cin>>l;
	readVector(x, l);
	printVector(x, l);
	if(issequence(x, l))
		cout<<"is a sequence \n";
	else
		cout<<" is NOT a sequence\n";
		
return 0;
}
